package sk.isomi.minihr;

import java.util.ArrayList;
import java.util.Calendar;

import sk.isomi.enums.ProjectTypes;
import sk.isomi.minihr.entities.Employee;
import sk.isomi.minihr.entities.Person;
import sk.isomi.minihr.entities.Project;
import sk.isomi.minihr.mngts.ProjectMngt;

public class RunApp {

	/**
	 * @param args
	 * @throws InterruptedException 
	 */
	public static void main(String[] args) throws InterruptedException {
		/*
		Person person1 = new Employee("E11", "Ing.", "Ján", "Škulavík", "8003268416", 1000.00, "OpenIT");
		//System.out.println(person1);
		Person person2 = new Employee("E12", "Ing.", "Ján", "Škulavík", "8003268416", 1000.00, "OpenIT");
		System.out.println(person1.equals(person2));
		System.out.println(person1.getId());
		//System.gc();
		//System.out.println(person1);
		
		ArrayList<Person> personList = new ArrayList<Person>();
		personList.add(person1);
		personList.add(person2);

		for (Person person : personList) {
			System.out.println(person);
		}
		
		for (int i=0; i < personList.size(); i++) {
			System.out.println(personList.get(i));
		}
		*/
		
		Calendar calendar = Calendar.getInstance();
		calendar.add(Calendar.MONTH, -1);
		Project project1 = new Project(10, "Projekt1", calendar.getTime(), 100, 1000.00, ProjectTypes.EXTERNAL);
		ProjectMngt mngt = new ProjectMngt();
		mngt.addProject(project1);
		mngt.printProjectProgressStatus(System.out);
	}

}
